package be.gnx.log4jeclipse.log4j;

import java.net.InetAddress;
import java.util.List;

public interface Log4JListenerCallbacks {

  List<PortBacklogInetaddress> getPortBacklogInetaddressList();

  public class PortBacklogInetaddress {

    protected final int port;

    protected final int backlog;

    protected final InetAddress inetAddress;

    public PortBacklogInetaddress(int port) {
      this(port, 0, null);
    }

    public PortBacklogInetaddress(int port, InetAddress inetAddress) {
      this(port, 0, inetAddress);
    }

    public PortBacklogInetaddress(int port, int backlog, InetAddress inetAddress) {
      this.port = port;
      this.backlog = backlog;
      this.inetAddress = inetAddress;
    }

  }

}
